package com.zc.demo.springframework;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Created by zhangchi9 on 2016/11/2.
 */
@ComponentScan
@Configuration
public class Application {

    @Bean
    MessageService mockMessageService(){
        return new MessageService() {
            @Override
            public String getMessage() {
                return "hello world !";
            }
        };
    }
}
